import request from '@/utils/request'

function findAllRecommends() {
  return request({
    url: '/lejuAdmin/homeRecommend/findAllRecommends'
  })
}

function addRecommend(data) {
  return request({
    url: '/lejuAdmin/homeRecommend/addRecommend',
    method: 'post',
    data
  })
}

function delRecommend(id) {
  return request({
    url: `/lejuAdmin/homeRecommend/delRecommend/${id}`,
    method: 'delete'
  })
}
export {
  findAllRecommends,
  addRecommend,
  delRecommend
}
